package com.yegs.admin.business.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.io.Serializable;
import java.util.List;

/**
 * <p>
 * 
 * </p>
 *
 * @author yegs
 * @since 2020-08-28
 */
public class BaseMenu extends Model<BaseMenu> {

    private static final long serialVersionUID = 1L;

    /**
     * 菜单ID
     */
    @TableId(value = "menu_id", type = IdType.AUTO)
    private Integer menuId;
    /**
     * 菜单父ID
     */
    private Integer menuRefParentid;

    /**
     * 菜单名称
     */
    private String menuName;

    /**
     * 菜单描述
     */
    private String menuDescribe;

    /**
     * 菜单路径
     */
    private String menuPath;

    /**
     * 菜单权限
     */
    private String menuPerms;

    /**
     * 菜单类型
     */
    private int menuType;


    /**
     * 子菜单
     */
    @TableField(exist = false)
    private List<BaseMenu> menus;

    public int getMenuType() {
        return menuType;
    }

    public void setMenuType(int menuType) {
        this.menuType = menuType;
    }

    public List<BaseMenu> getMenus() {
        return menus;
    }

    public void setMenus(List<BaseMenu> menus) {
        this.menus = menus;
    }

    public Integer getMenuId() {
        return menuId;
    }

    public void setMenuId(Integer menuId) {
        this.menuId = menuId;
    }
    public Integer getMenuRefParentid() {
        return menuRefParentid;
    }

    public void setMenuRefParentid(Integer menuRefParentid) {
        this.menuRefParentid = menuRefParentid;
    }
    public String getMenuName() {
        return menuName;
    }

    public void setMenuName(String menuName) {
        this.menuName = menuName;
    }
    public String getMenuDescribe() {
        return menuDescribe;
    }

    public void setMenuDescribe(String menuDescribe) {
        this.menuDescribe = menuDescribe;
    }
    public String getMenuPath() {
        return menuPath;
    }

    public void setMenuPath(String menuPath) {
        this.menuPath = menuPath;
    }
    public String getMenuPerms() {
        return menuPerms;
    }

    public void setMenuPerms(String menuPerms) {
        this.menuPerms = menuPerms;
    }

    @Override
    protected Serializable pkVal() {
        return this.menuId;
    }

    @Override
    public String toString() {
        return "BaseMenu{" +
            "menuId=" + menuId +
            ", menuRefParentid=" + menuRefParentid +
            ", menuName=" + menuName +
            ", menuDescribe=" + menuDescribe +
            ", menuPath=" + menuPath +
            ", menuPerms=" + menuPerms +
        "}";
    }
}
